Passer au contenu principal
POST
/
public
/
v1
/
segment-service
/
segments
/
{segment-id}
/
upload
[BETA] Upload users to a segment.
curl --request POST \
  --url https://api.topsort.com/public/v1/segment-service/segments/{segment-id}/upload \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Autorisations

Authorization
string
header
requis

A valid API key generated in Topsort's UI.

Paramètres de chemin

segment-id
string
requis

The external ID of the segment.

Paramètres de requête

action
enum<string>
défaut:add

The action to perform on the segment.

Options disponibles:
add,
remove,
replace

Corps

multipart/form-data
file
file
requis

Réponse

Successful Response